package com.example.spring.security.pojo;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

/**
 *
 * 用户实体类
 * @since: 1.0.0
 * @Author:hezeyu
 * @Date: 2021/4/27 15:49
 */
@Data
@TableName("user_info")
@ApiModel(value="用户实体",description="系统管理员用户表")
public class UserPojo  implements java.io.Serializable  {


    @TableId(type = IdType.AUTO)
    @ApiModelProperty(value = "用户id（自增）", name = "id", required = false)
    private Long id;

    /**
     * 用户账号
     */
    @ApiModelProperty(value = "登录账号", name = "username", required = false)
    private String username;

    /**
     * 用户密码
     */
    @ApiModelProperty(value = "登录密码", name = "password", required = false)
    private String password;

    /**
     * 角色
     */
    @ApiModelProperty(value = "角色",name= "role", required = false)
    private String role;

}